They told you to study basic things (algorthms, linked lists, etc...) and then they give you a hard leetcode problem. The guy that interviewed me event told me that the problem was supper difficult and he didn't know why Pinterest raised the interview questions to that level.