Photo Album problem (insert photos at given indices, return final album order)
Asked in the OA stage. Given photos and indices, insert each photos[i] at position indices[i] in order and return the final album.
reconstruct_album(photos, indices)
Both inputs are lists of equal length. Return a list containing the photos in final order. Each index is valid at the moment its photo is inserted.
def reconstruct_album(photos, indices):