Amazon Interview Question

It was based on Kojaraju Algorithm to find strongely connected component