Yugabyte interview question

Simple data structure and algorithm problems