Dynamic Strategy Planning for Efficient Question Answering with Large Language Models