rotate continues while object move pointA to pointB then reverse Rotation

I have 1 object

I need that object

Rotate continues while object move PointA to PointB

Then wait for 3 second

Then reverse rotation while same object move PointB to PointA.

Here is code for move PointA to PointB

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class MovingPlatform : MonoBehaviour
{
    public Transform movingPlatform;
    public Transform position1;
    public Transform position2;
    public Vector3 newPosition;
    public string currentState;
    public float smooth;
    public float resetTime;

    private void Start()
    {
        ChangeTarget();
    }

    private void FixedUpdate()
    {
        movingPlatform.position = Vector3.Lerp(movingPlatform.position, newPosition, smooth * Time.deltaTime);
    }

    void ChangeTarget()
    {
        if (currentState == "Moving To Position 1")
        {
            currentState = "Moving To Position 2";
            newPosition = position2.position;
        }
        else if (currentState == "Moving To Position 2")
        {
            currentState = "Moving To Position 1";
            newPosition = position1.position;
        }
        else if (currentState == "")
        {
            currentState = "Moving To Position 2";
            newPosition = position2.position;
        }
        Invoke("ChangeTarget", resetTime);
    }
}

but i need rotation…
so, how can i do it… any idea…

Move PointA to PointB :

transform.position = Vector3.Lerp(transform.position, destination, 0.5f * Time.deltaTime);

Wait for 3 secondes :

You can ever use CoRoutine for that but it depend on you skill with Unity.

    void Start()
    {
        StartCoroutine(Example());
    }

    IEnumerator Example()
    {
        print(Time.time);
        yield return new WaitForSeconds(5);
        print(Time.time);
    }

Rotate continues while object move PointA to PointB :

transform.eulerAngles = Vector3.Lerp(transform.rotation.eulerAngles, to, Time.deltaTime);

Well it’s a 3 points question so dont expect accurate answers… next time do more research, they are lots of topics about this kind of issues…