Techno Soft Interview Question

Print right view of graph