Find degrees of connection in a LinkedIn graph | Liftoff Interview Question