Luxoft interview question

How do you fix cyclic complexity in java