Adobe Interview Question

Medium to tough