add solution for palsquare