Bestseller Interview Question

FE task