Pendo Interview Question

Very weird problem to solve which was unable to get.