Sankey Solutions Interview Question

Oops concept basic java questions