Manhattan Associates Interview Question

they asked me a tricky question in angular