Russian President Vladimir Putin says he is optimistic a deal with Iran on its controversial nuclear program can be reached .