Children are used to playing with special cubes with letters written on the cubes' faces. The goal of the game is to compose words using such cubes. If you want to compose the word "DOG", you must find 3 cubes, one containing the letter 'D', one containing the letter 'O', and one containing the letter 'G', and orient them so the proper letters are facing upward.
You are also given a String words, each element of which contains a word that you would like to spell out using the cubes. Return a int containing the 0-based indices of each of the words in words that can be composed using the given cubes. Indices in the return value must be sorted in ascending order.