Tech Mahindra Interview Question

In the Technical interview puzzles were asked.