 <p>Your statement says <code>pal(y)==n</code>, but <code>pal(y)</code> returns a boolean. I'm not sure what comparing it to <code>n</code> is supposed to do.</p> <p>In general, avoid statements like <code>foo == true</code>. If it's already a boolean, just use <code>foo</code>, or for false <code>!foo</code>.</p>