Google interview question

One cycle detection related DSA question