Tech Mahindra Interview Question

difference between nested query and inner query