Gram Power interview question

Some basics