Amazon Interview Question

It was based on MCM multiplication and AI related