LinkSquares interview question

- medium leetcode-style problem during the coding exercise - going through Rails questions for the system design