Cognizant Interview Question

Some puzzles from Sakuntala Devi book.