Company: Deloitte_5_feb
Difficulty: medium
Passing the Parcel Problem Description Radhika has organized a birthday celebration for her younger daughter with a special game called "Passing the Parcel" for the entertainment of the invited kids. The game involves N kids seated in a circle, with a parcel wrapped in layers of colorful paper. Each layer contains a small gift. The game starts with the first kid, who passes the parcel quickly to the next kid in a clockwise direction. Radhika, the game organizer, will pick a slip from a bowl that has a number X on it. She will allow the kids to make X passes starting from the first kid and ask to stop the game as soon as X passes are completed. The kid at which the parcel stops will unwrap a layer to claim a small gift. The process repeats, starting with the first kid again, until all the layers are unwrapped. Radhika needs your help in creating a program that takes the number of participating kids N and the number on the slip X as input and determines the position of the kid who receiv