BNY Interview Question

One was based on maximal square question pattern from leet code.