Cognizant Interview Question

Queries , joins , python program, oops