LendingPoint Interview Question

leet code 1637 infinite vertical width