Cognizant Interview Question

Technical round was easy some basic stuff in Data Structure. HR asked some puzzles which you can solve very easily.