• + 1 comment

    Best possible solution can be done using a dp array of size 2 * 2 :)