LendingPoint interview question

leet code 1637 infinite vertical width