The president and first lady were visiting Buckingham Palace during their time in London for the NATO summit.