how to write 1 2c2 2c3 2c4 in java

Solutions on MaxInterview for how to write 1 2c2 2c3 2c4 in java by the best coders in the world