Input: ""(blue) [] (red)


Sample code

  

Ref: Term project by Emrah Tema