Design a Graph Search Function for a Social Network — Hard System Design Problem