John Deere Interview Question

Find first k distinct continuous elements(naive+optimal) Projects Operating systems Networks Some DBMS qns