The correct option is A Jammu and Kashmir
States/UTs having common frontiers with Pakistan are Jammu and Kashmir Punjab, Rajasthan and Gujarat. And states having common frontiers with China are Jammu and Kashmir Himachal Pradesh Uttarakhand Sikkim and Arunachal Pradesh. Hence, the correct answer is option (B)