Create an 2D array next [ ] [ ] of size 26 * sizeOfB to store the next occurrence of a character ( ' a ' to ' z ' ) as an index [ 0 , sizeOfA - 1 ]
next = [ [ inf for i in range ( sizeOfB ) ] for i in range ( 26 ) ] NEW_LINE