Scandit Interview Question

LC easy + medium