Create find_cycles.cpp

how to find cycles