Gram Power Interview Question

Some basics