BNY interview question

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