Luxoft Interview Question

How do you fix cyclic complexity in java