The Duchess of Cambridge roared with laughter as pupils showed her an eco-friendly version of Bug-ingham Palace