Updated solutions to Logic-1, String-2