HashedIn by Deloitte Interview Question

Rainwater storing approach.coding question Equilibrium point in array