Python -3 Rotate:: Simpler version
Think that all the elements are pulled towards right hand side, (gravity instead of downwards it is rightways ) \n\n\n\nm=len(box[0])\nn=len(box)\nfor row_idx,r
### Think that all the elements are pulled towards right hand side, (gravity instead of downwards it is rightways ) \n\n\n```\nm=len(box[0])\nn=len(box)\nfor row_idx,row in enumerate(box):\n    c=[]  #Maintain queue of c\n    itr=m\n\twhile(itr>0):\n        itr=itr-1\n        if(row[itr]=="."):\n            c.append(itr)\n            continue\n        elif(row[itr]==\'*\'):\n            c=[]\n        else:\n            if(c!=[]):\n                c_itr=c.pop(0)\n                box[row_idx][itr]=\'.\'\n                c=c+[itr]\n                box[row_idx][c_itr]=\'#\'\n### Rotating our results by 90 degree\nsample_box=[([row[i] for row in box])[::-1] for i in range(len(box[0]))]\nsample_box\n```
['Queue', 'Python', 'Python3']