OKG Interview Question

Linear regression or simple leetcode data structure question.