Altimetrik Interview Question

Coding, related to cypress question