GeeksForGeeks interview question

Linear DSA was asked a lot