Question d’entretien chez PhysicsX

Hackerrank test. Questions fairly easy but need to work quickly.