//T.C : O(m⋅n⋅E⋅2^k), number of possible states //S.C : O(m⋅n⋅E⋅2^k), number of possible states stored in vector of this size ...