Question d’entretien chez Clearwater Analytics (CWAN)

Write a function to solve a given problem in the best way possible