Detect problem

Split solution into parts

Analyzing method

Final result comes out